﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Decisions.HL7.Generated.AbstractMessage
{
    public class SegmentRequiredException : Exception
    {
        private string segmentName;
        private string messageTypeName;
        private string dataAvailable;

        public SegmentRequiredException(string segmentName, string messageTypeName, string dataAvailable) 
            : base(string.Format("{0} is required for {1} but data available is {2}", segmentName, messageTypeName, dataAvailable)) 
        {
            // TODO: Complete member initialization
            this.segmentName = segmentName;
            this.messageTypeName = messageTypeName;
            this.dataAvailable = dataAvailable;
        }
    }
}
